package com.shenwei.yingdaoguanli.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shenwei.yingdaoguanli.entity.FileStat;
import com.shenwei.yingdaoguanli.entity.dto.FileStatDto;
import com.shenwei.yingdaoguanli.entity.vo.FileStatVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author wang
 * @Date 2025/1/8 22:25
 * @PackageName:com.shenwei.yingdaoguanli.mapper
 * @ClassName: FileStatMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface FileStatMapper extends BaseMapper<FileStat> {
    void insertBatch(List<FileStat> batch);

    List<FileStatVo> getLatestFileStatsByStatDate(FileStatDto fileStatDto);

    List<FileStat> getFileStatsByDirectoryAndStatDate(FileStatDto fileStatDto);

    void deleteStatsByDate(String today);

    List<FileStatVo> getTodayFileStats(FileStatDto fileStatDto);
}